# EconomyManager.gd (Autoload单例)
extends Node
#class_name EconomyManager

var currencies := {
	"stamina_token": 0,
	"eco_point": 0,
	"altitude_mark": 0
}

func add_resource(resource_type: String, amount: int) -> void:
	if currencies.has(resource_type):
		currencies[resource_type] += amount
		_EventBus.currency_updated.emit(resource_type, currencies[resource_type])

func get_currency(resource_type: String) -> int:
	return currencies.get(resource_type, 0)
